import request from '@/utils/request'
import { ResultVoid, DeepRequired } from '../../interface'

/**
 * 删除角色
 * /role/one/{id}
 */
export function deleteRoleOneById(params: DeleteRoleOneByIdParams) {
  return request.delete<DeepRequired<ResultVoid>>(`/role/one/${params.id}`)
}

interface DeleteRoleOneByIdParams {
  id: number
}
